Freadlink

Section: Oct. 7, 1991 (2)
Updated: MiNT Programmer's Manual
Index Return to Main Contents
 

NAME

Freadlink - determine contents of a symbolic link  

SYNOPSIS

LONG Freadlink( WORD bufsiz, char *buf, char *name );
 

DESCRIPTION

Freadlink determines what file the symbolic link name points to, i.e. what the first argument to the Fsymlink call that created name was. This 0-terminated string is placed in the memory region pointed to by buf. The total size of this region is given by bufsiz; this must be enough to hold the terminating 0.  

RETURNS

0 on success

ERANGE if the symbolic link contents could not fit in buf.

EFILNF if name is not found.

EACCDN if name is not the name of a symbolic link.

EINVFN if the file system containing name does not support symbolic links.  

SEE ALSO

Fsymlink(2)  

BUGS

The Unix readlink call returns the number of bytes read on success, rather than 0.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
SEE ALSO
BUGS

This document was created by man2html, using the manual pages.
Time: 11:15:06 GMT, June 22, 2025